import request from '@/utils/request'
//共享登录方法
export const loginFn=(data)=>{
    return request({
        url:'admin/login',
        method:'POST',
        data    
    })
}

export const getUserFn=(data)=>{
    return request({
        url:'admin/getUser',
        method:'POST',
        data  
    })
}

export const updatePassword=(data)=>{
    return request({
        url:'admin/updatePassword',
        method:'POST',
        data  
    })
}

export const menuListFn=(data)=>{
    return request({
        url:'admin/menuList',
        method:'POST',
        data  
    })
}